package com.chezai.client.server;

import java.util.TimerTask;
import java.util.concurrent.LinkedBlockingDeque;

/**
 * Created by likunyang on 2017/10/25.
 */

public class TimeoutTask extends TimerTask {


    private final LinkedBlockingDeque<Object> mQueue;
    private Object mCurrentMsg;

    public TimeoutTask() {
        mQueue = new LinkedBlockingDeque<>();
    }

    public void add(Object msg) {
        mQueue.add(msg);
    }

    public void addFirst(Object msg) {
        mQueue.addFirst(msg);
    }

    public void addLast(Object msg) {
        mQueue.addLast(msg);
    }

    public boolean remove(Object msg) {
        return mQueue.remove(msg);
    }

    @Override
    public void run() {

    }
}
